<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>接口测试</title>
</head>
<body>
<!--<input type="text" id="code" placeholder="验证码">-->
<!--<input type="text" id="mobile" placeholder="手机号">-->
<!--<button id="getCode">获取验证码</button>-->
<button id="submit">提交</button>

<script src="//cdn.bootcss.com/jquery/2.1.0/jquery.js"></script>
<script>


    $(function () {
        
        $('#submit').click(function(){
//
//            var mobile = $('#mobile').val();
//            //console.log(res);
//            $.post('<?php echo U("App/Sms/Mobile/code")?>',{'mobile':mobile},function(res){
//
//                console.log(JSON.parse(res));
//
//            })
//
//        })

            var data = {

                mobile:'13123144888'
            }

            $.post('<?php echo U("App/Sms/Mobile/code")?>', data, function (result) {

                console.log(result);

            });
        });

    })


</script>
</body>
</html>